

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Paste from Project Browser [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Paste,Paste Element From Project Browser,Paste Object As Link,Paste Object As New Instance,Paste Object As Child,Paste Element Dialog,Element,Element Drag From Project Browser,Element Paste From Project Browser,Element Add To Diagram From Project Browser,Link,Link Paste Object As,Instance,Instance Paste Object As,Child Element,Child Element Paste Object As,Add,Add Element To Diagram From Project Browser,Drag,Drag Element From Project Browser,Dialog,Dialog Paste Element">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Paste from Project Browser</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="autosizeelements.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="pastingmultipleitemsfromth.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p style="margin: 5px 0px 5px 13px;">You can paste an element from the <span style="color: #ff2b2b;">Project Browser</span> into the current diagram.</p>
<p class="p_BodyText"><span class="f_BodyText">When you drag an element from the </span><span class="f_UIControl">Project Browser</span><span class="f_BodyText"> onto the current diagram, Enterprise Architect prompts you to select the type of paste action to carry out. (If the prompt does not display, press and hold</span><span class="f_MenuKeyField"> [Ctrl]</span><span class="f_BodyText"> while dragging the element onto the diagram.)</span></p>
<p class="p_TextIndentedL2"><img src="pasteelementdlg.png" width="314" height="191" border="0" alt="PasteElementDlg"></p>
<p class="p_BodyText"><span class="f_BodyText">Three options are available:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=1><span class="f_NumberedList">Paste the element as a simple link. In this case the element displays in the current diagram as a simple reference to the original source element. Changes to the element in the diagram affect all other links to this element.</span></li>
<li value=2><span class="f_NumberedList">Paste as an instance of the element. If the element can have instances such as an Object, Sequence instance or Node instance, you can drop the element in as an instance of the source element, with the classifier pre-set to the original source. This is useful when creating multiple instances of a Class in a Sequence diagram or Communication diagram.</span></li>
<li value=3><span class="f_NumberedList">Create as a child of the source element. This automatically creates a new Class - which you are prompted to name - with a Generalization connector back to the source. This is very useful when you have a Class library or framework from which you inherit new forms; for example, you can paste a Hashtable as &quot;</span><span class="f_NumberedList" style="font-style: italic;">MyHashtable</span><span class="f_NumberedList">&quot; which automatically becomes a child of the original Hashtable. Used with the </span><span class="f_NumberedList" style="font-style: italic;"><a href="overrideparentoperations.htm">Override parent operations</a></span><span class="f_NumberedList"> and features, this is a quick way to create new structures based on frameworks such as the Java SDK and the .NET SDK.</span></li>
</ol>
<p class="p_BodyText">You can make your selection on this dialog the default for all drag and drop operations, or only those where you display the <span class="f_UIControl">Paste Element</span> dialog.</p>
<p class="p_BodyText">You can also select to display the dialog only if you press <span class="f_MenuKeyField">[Ctrl]</span> while you drag elements from the <span class="f_UIControl">Project Browser</span>, so that you can then drag objects from the <span class="f_UIControl">Project Browser</span> without pressing <span class="f_MenuKeyField">[Ctrl]</span>, without displaying the dialog, and dropping the element in whatever form you last selected from the dialog.</p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="952" bgcolor="#efeff7" style="width:952px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="952" bgcolor="#f7f7ff" style="width:952px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">To make use of the </span><span class="f_MenuKeyField">Only show this dialog when [Ctrl]+Mouse drag is used</span><span class="f_TiporNoteText"> checkbox, you must first select the </span><span class="f_MenuKeyField">Auto Instance </span><span class="f_TiporNoteText">checkbox on the </span><span class="f_UIControl"><a href="diagrambehavoir.htm">Diagram Behavior</a></span><span class="f_TiporNoteText"> page of the </span><span class="f_UIControl">Options</span><span class="f_TiporNoteText"> dialog (select the </span><span class="f_MenuKeyField">Tools | Options | Diagram | Behavior</span><span class="f_TiporNoteText"> option).</span></p>
</td>
</tr>
</table>
</div>
<p class="p_SeeAlso"><span class="f_SeeAlso">See Also</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1"><a href="dropobjectsfromtree.htm">Drop Elements from Project Browser</a></span></li>
<li><span class="f_Bulletlist1"><a href="implementation2.htm">Implementation</a></span></li>
<li><span class="f_Bulletlist1"><a href="create_object_from_attribute.htm">Create Object From Attribute</a></span></li>
<li><span class="f_Bulletlist1"><a href="convertlinkedelementtoloca.htm">Make Linked Element A Local Copy</a></span></li>
</ul>




            </div>
          </div>
        </div>



</div>


</body>
</html>
